home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / database / ingres04.lzh / source / dbu / rupdate.c < prev    next >
Encoding:
C/C++ Source or Header  |  1985-01-23  |  748 b   |  51 lines

  1. # include    <pv.h>
  2. # include    <ingres.h>
  3. # include     <func.h>
  4. # include    <sccs.h>
  5.  
  6. SCCSID(@(#)rupdate.c    8.1    12/31/84)
  7.  
  8. extern    short    tTdbu[];
  9. extern    int    rupdate();
  10. extern    int    null_fn();
  11.  
  12. struct fn_def RupdatFn =
  13. {
  14.     "RUPDATE",
  15.     rupdate,
  16.     null_fn,        /* initialization function */
  17.     null_fn,
  18.     NULL,
  19.     0,
  20.     tTdbu,
  21.     100,
  22.     'Z',
  23.     0
  24. };
  25. /*
  26. **  RUBOUT SETUP FOR DEFFERED UPDATE PROCESSOR
  27. **
  28. **    These routines setup the special processing for the rubout
  29. **    signal for the deferred update processor.  The update
  30. **    processor is then called.
  31. */
  32.  
  33. rupdate(pc, pv)
  34. int    pc;
  35. PARM    pv[];
  36. {
  37.     register int    rtval;
  38.  
  39.     /* set up special signal processing */
  40.     ruboff("batch update");
  41.  
  42.     /* call update */
  43.     rtval = update(pc, pv);
  44.  
  45.     /* clean up signals */
  46.     rubon();
  47.  
  48.     return (rtval);
  49.  
  50. }
  51.